#coding=utf-8
from config import *
from SysCommon.tools import  *
from basehandler import basehandler, checkpower

class List(basehandler):
    @checkpower("000001")
    def get(self):
        self.set_header("Content-Type", "text/html; charset=UTF-8")
        uobj = self.get_currentuser()
        ps = self.get_userpower(uobj)
        if ps and uobj:
            t = global_lookup.get_template("T/default.html")
            self.write(t.render(ps=ps,userobj=uobj))
        else:
            self.write(ShowErrorAndGoBack(u"登录超时或未登录,请登录后再试。"))

  